import request from '@/utils/request'

// 查询线索分配列表s
export function listKeyallocation(query) {
  console.log("1111111111111",query)
  return request({
    url: '/keyallocation/keyallocation/list',
    method: 'get',
    params: query
  })
}

// 查询线索分配详细
export function getKeyallocation(allocationId) {
  return request({
    url: '/keyallocation/keyallocation/' + allocationId,
    method: 'get'
  })
}

// 新增线索分配
export function addKeyallocation(data) {
  return request({
    url: '/keyallocation/keyallocation',
    method: 'post',
    data: data
  })
}

// 修改线索分配
export function updateKeyallocation(data) {
  return request({
    url: '/keyallocation/keyallocation',
    method: 'put',
    data: data
  })
}

// 删除线索分配
export function delKeyallocation(allocationId) {
  return request({
    url: '/keyallocation/keyallocation/' + allocationId,
    method: 'delete'
  })
}
